package 对象向上向下转型instaceof;

public class cat extends Animal {
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }

    public void miao() {
        System.out.println("子类猫特有方法");
    }
}
